//
// Created by dlr123 on 2021/11/15.
//

#ifndef CAN1_DEMO_CAN_CONF_H
#define CAN1_DEMO_CAN_CONF_H
#include "stdlib.h"
#include "main.h"
#include "can.h"
#include "usart.h"
#include "stdio.h"

#define ADRRESS 1
#define Generate_msgID(Instruct,Index) (uint32_t)(((Index)<<16) | ((Instruct)<<8) | (ADRRESS))

HAL_StatusTypeDef CAN_SetFilters();

void CAN_SendMsg(uint8_t Instruct,uint8_t Index,uint8_t TxData[8],uint8_t Data_Len);

void CAN_ReadMsg(uint32_t FIFO_num);
#endif //CAN1_DEMO_CAN_CONF_H
